package com.sofwin.service;

import com.github.pagehelper.PageInfo;
import com.sofwin.dto.UserDto;
import com.sofwin.pojo.SUser;

public interface UserService {

	/**
	 * 分页查询用户数据
	 * @param user
	 * @param pageNumber
	 * @param pageSize
	 * @return
	 */
	PageInfo<UserDto> selectUserByPage(SUser user,Integer pageNumber,Integer pageSize);
/**
 * 
 * @param id
 * @return
 */
	SUser selectUserById(Integer id);
	/**
	 * 
	 * @param user
	 * @return
	 */
	Boolean saveOrUpdate(SUser user);
	/**
	 * 
	 * @param id
	 * @return
	 */
	Boolean deleteById(Integer id);
	/**
	 * 
	 * @param ids
	 * @return
	 */
	Boolean deleteByIds(String[] ids);
	boolean checkLogin(SUser user);
	SUser selectUserByUserNameAndPwd(SUser user);
}
